package net.app.zoneland.platform.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.app.zoneland.common.core.vo.Result;
import net.app.zoneland.domain.SysRole;
import java.util.List;

/**
 * @Description
 * @Author cjb
 * @CreateTime 2020/12/20 13:00
 * @Version: 1.0
 */
public interface ISysRoleService extends IService<SysRole> {

    boolean update(SysRole role);

    boolean delete(List<Integer> ids);

    boolean add(SysRole role);

    boolean update(Integer id, List<Integer> resourceIds);

    IPage<SysRole> list(Page<SysRole> page, SysRole role);

    Result findRourceById(Integer roleId);

    Result queryByRoleId(String roleIds);

}
